#ifndef DRIVER_RTC_H
#define DRIVER_RTC_H

#include <klibc/ctype.h>
#include <system/regs.h>
#include <system/mod.h>


#define RTCaddress	0x70
#define RTCdata		0x71




uint8_t rtc_get_seconds();
uint8_t rtc_get_minutes();
uint8_t rtc_get_month();
uint8_t rtc_get_year();
uint8_t rtc_get_hours();
uint8_t rtc_get_day();

typedef struct
{
	uint8_t hours;
	uint8_t minutes;
	uint8_t seconds;
	uint8_t month;
	uint8_t day;
	uint8_t year;
} rtc_data_t;


uint32_t rtc_init();
static void rtc_callback(regs_t *);
uint32_t rtc_read(uint8_t *, uint32_t, char *);


rtc_data_t rtc_data;

#endif
